﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<EnterpriseManagement.Models.BasicInformationModel>" %>

<div id="editemployee" style ="margin-left:10%">

 <% using (Ajax.BeginForm("EditEmployee", new AjaxOptions { UpdateTargetId = "editemployee" }))
    {%>
<%: Html.ValidationSummary(true)%>
     <table   id="tablenoframe">
            <tr>
            <td class="label"><%: Html.LabelFor(model => model.EmployeeId)%></td>
            <td class="editor-field">
                <%: Html.TextBox("EmployeeId",Model.EmployeeId, new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.EmployeeId)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.Name )%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Name)%>
                <%: Html.ValidationMessageFor(model => model.Name)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.Sex)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Sex)%>
                <%: Html.ValidationMessageFor(model => model.Sex)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.Birthday)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Birthday)%>
                <%: Html.ValidationMessageFor(model => model.Birthday)%>
            </td>

            <td class="label"><%: Html.LabelFor(model => model.Position)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Position)%>
                <%: Html.ValidationMessageFor(model => model.Position)%>
            </td>
            </tr>

            <tr>
            <td class="label"><%: Html.LabelFor(model => model.HiredDate)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.HiredDate)%>
                <%: Html.ValidationMessageFor(model => model.HiredDate)%>
            </td>
           <td class="label"><%: Html.LabelFor(model => model.EmployeeStatus)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.EmployeeStatus)%>
                <%: Html.ValidationMessageFor(model => model.EmployeeStatus)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.GraduateSchool)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.GraduateSchool)%>
                <%: Html.ValidationMessageFor(model => model.GraduateSchool)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.Major)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Major)%>
                <%: Html.ValidationMessageFor(model => model.Major)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.Mobile)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Mobile)%>
                <%: Html.ValidationMessageFor(model => model.Mobile)%>
            </td>
            </tr>

            <tr>
             <td class="label"><%: Html.LabelFor(model => model.Email)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Email)%>
                <%: Html.ValidationMessageFor(model => model.Email)%>
            </td>
               <td class="label"><%: Html.LabelFor(model => model.LeaveDate)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.LeaveDate)%>
                <%: Html.ValidationMessageFor(model => model.LeaveDate)%>
            </td>
            <td colspan ="2" align ="left"><input type="submit" value="更新"  style ="margin-left:20px;" /></td>
            </tr>
            </table>
<%} %>

</div>